package com.aorise.mapper.diagnosis;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import com.aorise.model.diagnosis.*;

import java.util.List;
import java.util.Map;

/**
* @Author:cat
* @Description 诊断报告明细mybatis接口类
* @Date:Created in 2019-06-26
* @Modified By:
*/
@Mapper
@Component(value = "reportCameraMapper")
public interface ReportCameraMapper {

    /**
     * @Author:cat
     * @Description 查询诊断报告明细信息总条数
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getAllReportCameraListTotalByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 分页查询诊断报告明细信息
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: List<ReportCameraModel> 诊断报告明细集合
     * @Modified By:
     */
    List<ReportCameraModel> getAllReportCameraListByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据报告ID查询诊断报告明细
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: List<ReportCameraModel> 诊断报告明细集合
     * @Modified By:
     */
    List<ReportCameraModel> getReportCameraByReportId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增诊断报告明细信息
     * @params: reportCameraModel 诊断报告明细信息
     * @Date:2019-06-26
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addReportCamera(ReportCameraModel reportCameraModel) throws DataAccessException;


}